#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
int Swap(int* pa, int* pb) {
	int tmp = 0;
	tmp = *pa;
	*pa = *pb;
	*pb = tmp;
	printf("%d %d", *pa, *pb);
}
int main() {
	int a, b = 0;
	scanf("%d%d", &a, &b);
	Swap(&a,&b);
	return 0;
}